<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

//1、引入softDeletes这个类
use Illuminate\Database\Eloquent\SoftDeletes;

class Manager extends Model implements \Illuminate\Contracts\Auth\Authenticatable
{
    //使用Auth模块下的Authenticatable实现Contracts\Auth\Authenticatable契约
	use \Illuminate\Auth\Authenticatable;
	
	//2、包含triat
	use SoftDeletes;
	//3、定义属性：代表软删除的字段
	protected $dates = ['deleted_at'];
	
	protected $table = 'manager';		//表名
	protected $primaryKey = 'mg_id';	//主键字段，默认为id
	protected $fillable = ['username', 'password', 'mg_role_ids', 'mg_sex', 'mg_phone', 'mg_email', 'mg_remark'];		//可以操作的字段
	

}